﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Checkbox
{
    class Caipan
    {
        public enum Result{
            玩家赢,
            机器赢,
            平局
        }
        public Result printResult(int player,int computer) {
            if (player - computer == -2 || player - computer == 1 ) return Result.玩家赢;
            else if (player - computer == 2|| player - computer == -1) return Result.机器赢;
            return Result.平局;
        }
    }
}
